package com.prs.crm.domain.fs;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.Currency;

@Entity
@Table(name="fs_bankaccount")
public class BankAccount extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	private String name;
	private String account;
	@ManyToOne
	private Currency currency;
	private String content;
	
	@OneToMany(fetch = FetchType.LAZY, mappedBy ="bankAccount")
	private Set<Detail> details;
	
	public Set<Detail> getDetails() {
		return details;
	}
	public void setDetails(Set<Detail> details) {
		this.details = details;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setCurrency(Currency currency) {
		this.currency = currency;
	}
	public Currency getCurrency() {
		return currency;
	}	
}
